/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tvunetworks.dao.ibatis;

import com.tvunetworks.dao.CategoryDao;
import com.tvunetworks.model.Category;
import java.util.List;

/**
 *
 * @author michael
 */
public class CategoryDaoiBatis extends GenericDaoiBatis<Category, String> implements CategoryDao {

    public CategoryDaoiBatis() {
        super(com.tvunetworks.model.Category.class);
    }

    public Category getCategory(String categoryId) {
        return (Category) getSqlMapClientTemplate().queryForObject("getCategory", categoryId);
    }

    public List<Category> getCategoryList() {
        return getSqlMapClientTemplate().queryForList("getCategoryList");
    }
}
